<?php

App::uses('AppModel', 'Model');

/**
 * Documento Model
 *
 * @property User $User
 * @property Destino $Destino
 * @property Tipo $Tipo
 * @property Area $Area
 * @property Hojasruta $Hojasruta
 */
class Documento extends AppModel {
    //The Associations below have been created with all possible keys, those that are not needed can be removed

    /**
     * belongsTo associations
     *
     * @var array
     */
    public $belongsTo = array(
        'User' => array(
            'className' => 'User',
            'foreignKey' => 'user_id',
            'conditions' => '',
            'fields' => '',
            'order' => ''
        ),
        'Destino' => array(
            'className' => 'User',
            'foreignKey' => 'destino_id',
            'conditions' => '',
            'fields' => '',
            'order' => ''
        ),
        'Tipo' => array(
            'className' => 'Tipo',
            'foreignKey' => 'tipo_id',
            'conditions' => '',
            'fields' => '',
            'order' => ''
        ),
        'Area' => array(
            'className' => 'Area',
            'foreignKey' => 'area_id',
            'conditions' => '',
            'fields' => '',
            'order' => ''
        )
    );

    /**
     * hasMany associations
     *
     * @var array
     */
    public $hasMany = array(
        'Hojasruta' => array(
            'className' => 'Hojasruta',
            'foreignKey' => 'documento_id',
            'dependent' => false,
            'conditions' => '',
            'fields' => '',
            'order' => '',
            'limit' => '',
            'offset' => '',
            'exclusive' => '',
            'finderQuery' => '',
            'counterQuery' => ''
        )
    );

}
